import pytest
import os
from log import log_set
from mail import sent_mail
if __name__ == '__main__':
    log_set()
    pytest.main(["-s","test.py","--alluredir=报告数据","--clean-alluredir"])
    os.system("allure generate 报告数据 -o 报告 --clean")
    sent_mail(["log.txt","报告/index.html"])